package com.itheima.stock.propertis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Data
@Component
@ConfigurationProperties(prefix = "id-worker.config")
public class IdWorkPropertis {

    /**
     * 数据中心id
     */
    private long datacenterId ;
    /**
     * 机器id
     */
    private long machineId;
}
